home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / gopher / Unix / gopher+1.2b4 / conf.h next >
Encoding:
C/C++ Source or Header  |  1993-04-15  |  4.0 KB  |  180 lines

  1. /********************************************************************
  2.  * lindner
  3.  * 3.4
  4.  * 1993/04/15 22:08:51
  5.  * /home/mudhoney/GopherSrc/CVS/gopher+/conf.h,v
  6.  * Exp
  7.  *
  8.  * Paul Lindner, University of Minnesota CIS.
  9.  *
  10.  * Copyright 1991, 1992 by the Regents of the University of Minnesota
  11.  * see the file "Copyright" in the distribution for conditions of use.
  12.  *********************************************************************
  13.  * MODULE: conf.h
  14.  * More configuration parameters.
  15.  *********************************************************************
  16.  * Revision History:
  17.  * conf.h,v
  18.  * Revision 3.4  1993/04/15  22:08:51  lindner
  19.  * Remote user mods (Mitra)
  20.  *
  21.  * Revision 3.3  1993/03/18  23:11:16  lindner
  22.  * 1.2b3 release
  23.  *
  24.  * Revision 3.2  1993/02/19  21:25:03  lindner
  25.  * Updated pager command for gopher+ stuff.
  26.  *
  27.  * Revision 3.1.1.1  1993/02/11  18:02:49  lindner
  28.  * Gopher+1.2beta release
  29.  *
  30.  * Revision 1.7  1993/02/09  22:49:34  lindner
  31.  * Fixes for new mapping thing
  32.  *
  33.  * Revision 1.6  1993/01/08  23:04:48  lindner
  34.  * Changed TN3270_COMMAND for Multinet
  35.  *
  36.  * Revision 1.5  1992/12/31  05:32:43  lindner
  37.  * Added mods for VMS
  38.  *
  39.  * Revision 1.4  1992/12/22  21:45:26  lindner
  40.  * Fixed bug with that zcat code I just added...
  41.  *
  42.  * Revision 1.3  1992/12/21  20:27:25  lindner
  43.  * Added #ifdef to make zcat changable..
  44.  *
  45.  * Revision 1.2  1992/12/13  05:56:32  lindner
  46.  * Added options for connection time-out code in the server (mtm)
  47.  *
  48.  * Revision 1.1  1992/12/11  19:01:58  lindner
  49.  * Gopher1.1 Release
  50.  *
  51.  *********************************************************************/
  52.  
  53. /*
  54.  * Defaults for the client program
  55.  * On startup the client will contact either the gopher server
  56.  * CLIENT1_HOST or CLIENT2_HOST randomly.
  57.  *
  58.  * Set CLIENT2_PORT to 0 if you only want one root machine
  59.  */
  60.  
  61. #define CLIENT1_HOST "gopher.tc.umn.edu"
  62. #define CLIENT2_HOST "gopher2.tc.umn.edu"
  63.  
  64. #define CLIENT1_PORT 70
  65. #define CLIENT2_PORT  70
  66.  
  67.  
  68. /*
  69.  * Override some defaults for various platforms
  70.  */
  71.  
  72. #if defined(sun)
  73. #define PLAY_COMMAND "play -v 40 -"
  74. #endif
  75.  
  76. #if defined(hpux) || defined(_AUX_SOURCE) || defined(_SEQUENT_) || defined(USG)
  77. #define MAIL_COMMAND "mailx"
  78. #endif
  79.  
  80. #if defined(REMOTEUSER)
  81. #define PAGER_COMMAND "Less -f -r"
  82. #endif
  83.  
  84. #if defined(NeXT)
  85. #define NO_VPRINTF
  86. #define PLAY_COMMAND "play -v 40 -"
  87. #endif
  88.  
  89. #if defined(_SEQUENT_)
  90. #define PRINTER_COMMAND "lp"
  91. #endif
  92.  
  93. #if defined(VMS)
  94. #  define PRINTER_COMMAND "print"
  95. #  define PAGER_COMMAND   "type/page"
  96. #  define PLAY_COMMAND    "- none -"
  97. #  define GOPHERHELP      "sys_local:gopher.hlp"
  98. #  if defined(MULTINET)
  99. #     define TN3270_COMMAND        "telnet/tn3270"
  100. #  endif
  101. #endif
  102.  
  103.  
  104.  
  105. /*
  106.  * Now set the parameters, only if not set above... 
  107.  */
  108. #ifndef PAGER_COMMAND
  109. #define PAGER_COMMAND "more -d"
  110. #endif
  111.  
  112. #ifndef MAIL_COMMAND
  113. #define MAIL_COMMAND "mail"
  114. #endif
  115.  
  116. #ifndef TELNET_COMMAND
  117. #define TELNET_COMMAND "telnet"
  118. #endif
  119.  
  120. #ifndef TN3270_COMMAND
  121. #define TN3270_COMMAND "tn3270"
  122. #endif
  123.  
  124. #ifndef PRINTER_COMMAND
  125. #define PRINTER_COMMAND "lpr"
  126. #endif
  127.  
  128. #ifndef PLAY_COMMAND
  129. #define PLAY_COMMAND "/bin/false"
  130. #endif
  131.  
  132. #ifndef MIME_COMMAND
  133. #define MIME_COMMAND "metamail -P" 
  134. #endif
  135.  
  136. #ifndef IMAGE_COMMAND 
  137. #define IMAGE_COMMAND "xloadimage -fork %s"
  138. #endif
  139.  
  140. /****************** gopherd configuration ***********************/
  141.  
  142. /*
  143.  * This is the default time to cache directory entries on the server.
  144.  */
  145.  
  146. #define CACHE_TIME 180  /** Default cache time of three minutes. **/
  147.  
  148.  
  149. /*
  150.  * The load average at which to restrict connections
  151.  */
  152.  
  153. #define MAXLOAD 10.0
  154.  
  155. /*
  156.  * Return type for signal()
  157.  */
  158.  
  159. #define SIGRETTYPE void
  160.  
  161. /*
  162.  * Timeout for network reads (5 minutes)
  163.  */
  164.  
  165. #define READTIMEOUT (5 * 60)
  166.  
  167.  
  168. #define LIST            "/tmp/gftp+"            /* Temp list file prefix */
  169.  
  170. /** Where the zcat command is...  **/
  171. #if defined(M_XENIX)
  172. #define ZCATCMD         "/usr/bin/zcat"
  173. #else
  174. #define ZCATCMD         "/usr/ucb/zcat"
  175. #endif
  176.  
  177. /* We need to define this since inetd.conf can only have a few
  178.    arguments, and we need lots of them */
  179. #define CONF_FILE    "/usr/local/etc/gopherd.conf"
  180.